/*
 * Copyright (c) 2010-present www.walkerljl.org All Rights Reserved.
 * The software source code all copyright belongs to the author, 
 * without permission shall not be any reproduction and transmission.
 */
package org.walkerljl.practice.pattern;

import org.walkerljl.commons.util.ObjectUtils;

import java.io.Serializable;

/**
 * Prototype
 *
 * @author lijunlin<walkerljl@qq.com>
 */
public class Prototype implements Cloneable, Serializable {

    private static final long serialVersionUID = 1L;

    /* 浅复制 */
    public Object clone() throws CloneNotSupportedException {
        Prototype proto = (Prototype) super.clone();
        return proto;
    }

    public Object deepClone() {
        return ObjectUtils.clone(this);
    }
}